#!/bin/sh
home=`cd ~;pwd`
bin_dir="$home/bin"
echo mkdir -p $bin_dir
mkdir -p $bin_dir
echo rsync -azuv r* $bin_dir
rsync -azuv r* $bin_dir
have_path_bin=`echo $PATH | grep $bin_dir |wc -l`
echo $have_path_bin
if [ "$have_path_bin" == "0" ];then
    echo "export PATH=\$PATH:$home/bin" >> $home/.bash_profile
    . $home/.bash_profile
fi
echo "install easyremote success!"
echo "You should create the .rt.config file in your working directory before you use it."
echo "For details, please refer to http://code.google.com/p/easyremote/wiki/configure"
